package jiChengHeDuoTai.jiChengHeDuoTai2.demo1;

public class Dog extends Animal{
    static {
        System.out.println("static::Dog{ }");
    }
    {
        System.out.println("实例代码块 Dog{ }");
    }
    public Dog(String name,int age){
        super(name,age);
        System.out.println("Dog()....");
    }
    public Dog(){
        super("haha",10);
    }
    public void bark() {
        System.out.println(this.name + "正在汪汪叫");
    }
}
